import { createRouter, createWebHistory } from 'vue-router'
import FaXianView from "../views/FaXianView.vue";


const BoKeView=()=>import('../views/BoKeView.vue')
const ProfileView=()=>import('../views/ProfileView.vue')
const GuanZhuView=()=>import('../views/GuanZhuView.vue')
const YunCunView=()=>import('../views/YunCunView.vue')
const SearchView=()=>import('../views/SearchView.vue')
const DailyView=()=>import('../views/DailyView.vue')
const PrivateView=()=>import('../views/PrivateView.vue')
const SongSheetView=()=>import('../views/SongSheetView.vue')
const RankingView=()=>import('../views/RankingView.vue')
const MeetSongView=()=>import('../views/MeetSongView.vue')
const AlbumView=()=>import('../views/AlbumView.vue')
const AudioView=()=>import('../views/AudioView.vue')
const NewsSongView=()=>import('../views/NewsSongView.vue')
const LiveView=()=>import('../views/LiveView.vue')
const GamesView=()=>import('../views/GamesView.vue')
const PlayMusicView=()=>import('../views/PlayMusicView.vue')
const SingingListRoaming=()=>import('../views/SingingListRoaming.vue')
const TingTing=()=>import('../views/boke/TingTing.vue')
const TuiJian=()=>import('../views/boke/TuiJian.vue')
const GuShi=()=>import('../views/boke/GuShi.vue')
const JingXian=()=>import('../views/boke/tingting/JingXuan.vue')
const ReMen=()=>import('../views/boke/tingting/ReMen.vue')
const SearchResult=()=>import('../views/search/SearchResult.vue')
const SearchSuggest=()=>import('../views/search/SearchSuggest.vue')
const SearchMoRen=()=>import('../views/search/SearchMoRen.vue')

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path:'/',
      name:'faxian',
      component:FaXianView
    },
    {
      path:'/boke-view',
      name:'boke',
      component:BoKeView,
      children:[
        // {
        //   path:'',
        //   redirect:'/boke-view/tui-jian'
        // },
        {
          path:'ting-ting',
          component:TingTing,
          children:[
            {
              path:'',
              component:JingXian
            },
            {
              path:'re-men',
              component:ReMen
            }
          ]
        },
        {
          path:'',
          component:TuiJian
        },
        {
          path:'gu-shi',
          component:GuShi
        }

      ]
    },
    {
      path:'/profile-view',
      name:'profile',
      component:ProfileView
    },
    {
      path:'/guanzhu-view',
      name:'guan-zhu',
      component:GuanZhuView
    },
    {
      path:'/yuncun-view',
      name:'yuncun',
      component:YunCunView
    },
    {
      path:'/search-view',
      name:'search',
      component:SearchView,
      children:[
        {
          path:'',
          component:SearchMoRen
        },
        {
          path:'searchsuggest',
          component:SearchSuggest
        }
      ]
    },
    {
      path:'/daily-view',
      name:'daily',
      component:DailyView
    },
    {
      path:'/private-view',
      name:'private',
      component:PrivateView
    },
    {
      path:'/songsheet-view',
      name:'songsheet',
      component:SongSheetView
    },
    {
      path:'/ranking-view',
      name:'ranking',
      component:RankingView
    },
    {
      path:'/meetsong-view',
      name:'meetsong',
      component:MeetSongView
    },
    {
      path:'/album-view',
      name:'album',
      component:AlbumView
    },
    {
      path:'/audio-view',
      name:'audio',
      component:AudioView
    },
    {
      path:'/newssong-view',
      name:'newssong',
      component:NewsSongView
    },
    {
      path:'/live-view',
      name:'live',
      component:LiveView
    },
    {
      path:'/games-view',
      name:'games',
      component:GamesView
    },
    {
      path:'/playmusic-view',
      name:'playmusic',
      component:PlayMusicView
    },
    {
      path:'/singinglistroaming-view',
      name:'singinglistroaming',
      component:SingingListRoaming
    },
    {
      path:'/search-view-result',
      name:'searchview',
      component:SearchResult
    }
  ]
})

export default router
